package com.lzx.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * (Product)实体类
 *
 * @author makejava
 * @since 2021-02-24 17:27:03
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class Product implements Serializable {
    private static final long serialVersionUID = 772218391756719181L;

    private Integer id;

    private String name;

    private BigDecimal price;

    private String modelnum;

    private String power;
    @TableField(fill = FieldFill.INSERT)
    private Date createdate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifydate;

    private String applyspace;

    private String measurement;

    private String weight;

    private String aftersaleservice;

    private String img;

    private Boolean ismarketable;

    private Integer salescount;

    private Boolean isactive;

    private String caption;

    private Integer brandid;

    private Integer pictrueid;
    /**不需要存在于数据库的字段**/
    @TableField(exist = false)
    private List<Integer> categories;


}
